Skip to content

fix(mcpx): scope gopls-mcp-server to the worktree (#961) - #8049

Merged
dezren39 merged 2 commits into
mainfrom
queue/14232-961-gopls-worktree-scope
Nov 10, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/14232-961-gopls-worktree-scope

Conversation

@dezren39

@dezren39 dezren39 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Closes #961.

Summary

On #864 (absolute paths)

#864 covers the codedb and fff entries, which carry /home/user/... paths. The gopls-mcp-server entry has no absolute paths (go run golang.org/x/tools/gopls@latest mcp), so the post-#864 config shape does not block this flip, and the flip does not pre-empt #864.

Verification

  • .mcpx.json parses; gopls-mcp-server resolves to {command, args, mcpx:{scope:"worktree"}}.
  • cd pkgs/mcpx && go test ./internal/config/ -run 'Scope|Extras|Parse' -count=1 → ok.

Remaining acceptance (live proof, owed)

This PR lands the config flip. The live proof from #961 still needs a machine with a running mcpx daemon and Go toolchain, and is being tracked by the queue task rather than asserted here:

  1. go_package_api on a module path returns the real API promptly (not empty),
  2. the same proof from a linked worktree is rooted in that worktree,
  3. two callers in different checkouts show distinct gopls instances in mcpx status.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 9, 2026 12:53
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T12:53:27.422164Z
We couldn’t complete this review. Comment @codex review to try again.
af903f9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · PR opened, parked for CI + live proof

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
lane: code-d
task: 14232
issue: #961
pr: #8049
stage: merge_ready
Merging the flip (task 14232, lane code-d): PR #8049 updated to current main (head 31d45c7); diff vs main is .mcpx.json only — gopls-mcp-server gains mcpx.scope = "worktree" (the same Extras shape as the existing session-scoped entry; JSON validated). Prior verification stands: go test ./internal/config/ -run 'Scope|Extras|Parse' ok (recorded by the opening lane), and #864 does not block this entry (no absolute paths in it). Codex review on this PR failed on usage limits and issued no findings — no undispositioned finding exists.
LIVE PROOF REMAINDER (acceptance item 2, still owed, recorded explicitly rather than silently skipped): the running mcpx daemon (pid 1066055, up 22h, checked today by this lane) loads a Nix-store config artifact and still reports gopls_mcp_server as scope=global. The worktree-scope proof (prompt go_package_api from two checkouts, distinct gopls instances in mcpx status) can only run after the daemon is redeployed with the merged config (the amd switch / mcpx config rebuild). That redeploy is a fleet-shared-daemon event and is NOT bundled into this merge. #961 stays OPEN for that proof; the exact owed steps are the three bullets in its acceptance.

@dezren39
dezren39 merged commit cff8ac2 into main Nov 10, 2026
0 of 10 checks passed
@dezren39
dezren39 deleted the queue/14232-961-gopls-worktree-scope branch November 10, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcpx fleet config: gopls to worktree scope + live workspace proof

1 participant